<?php
/* @var $this QuotationOrderHeaderController */
/* @var $model QuotationOrderHeader */

$this->breadcrumbs=array(
	'Quotation'=>array('index'),
	'List',
);

$this->menu=array(
	//array('label'=>'List Quotation', 'url'=>array('index')),
	array('label'=>'Create Quotation', 'url'=>array('create')),
);

/*Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#quotation-order-header-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");*/
?>

<h1>List Quotation</h1>

<?php 
$myclass = get_class($this);
$myclass= strstr($myclass,'Controller',true);
/*$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'quotation-order-header-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		
	),
)); */

$this->widget('application.extensions.tablesorter.Sorter', array(
    'data'=>$model,
    'columns'=>array(
		'quotation_no',
		'Customer.customer',
		'PO_ref',
		'attention',
		'project',
	),
	'filters'=>array(
        '',
		'',
        '',
        'filter-false',
        'filter-false',
    ),
	'view'=>$myclass,
	'page'=>'controller',
	'model'=>1,
));

?>
